/*
 * @Description:
 * @Author: HYH
 * @LastEditors: HYH
 * @LastEditTime: 2023-06-29 14:04:31
 */
import request from '@/utils/request'

/**查询经销商（商家）列表 */
export function getDistributor(params) {
  return request({
    url: '/distribution/distributor/list',
    params
  })
}


/**新增经销商（商家） */
export function addDistributor(data) {
  return request({
    url: '/distribution/distributor',
    method: 'post',
    data
  })
}

/**修改经销商（商家） */
export function editDistributor(data) {
  return request({
    url: '/distribution/distributor',
    method: 'put',
    data
  })
}

/**删除经销商（商家） */
export function deleteDistributor(ids) {
  return request({
    url: '/distribution/distributor/' + ids,
    method: 'DELETE',
  })
}



/**删除经销商（商家） */
export function exportDistributor(data) {
  return request({
    url: '/distribution/distributor/export',
    method: 'post',
    data
  })
}

